package main
import "fmt"
func main() {
	fmt.Println("Hello，World!")
	fmt.Println("Hello，Golang!")
	var num int = 10
	fmt.Println("num = ", num)
	// 数组
	var arr1 = [5]int{1, 2, 3, 4, 5}
	// for 循环
	for i := 0; i < len(arr1); i++ {
		fmt.Println(arr1[i])
		if arr1[i] == 3 {
			fmt.Println(arr1[i])
		}
	}

	// 指针
	ptr := &num
	fmt.Println("ptr = ", *ptr)
	fmt.Println(*ptr == num)
	fmt.Scanln(&num)
	fmt.Println("num = ", num)
}